
/************************ DEFINITIONS ******************************/

#define APM_BTN_FUNC		PORTAbits.RA1
#define APM_LED_RUN 		LATAbits.LATA2

//-----------------------------------------------------------------------------
// RUN LED defines
//-----------------------------------------------------------------------------

#define APM_OFF	0
#define APM_ON	1
#define APM_LED_RUN_TOGGLE (APM_LED_RUN ^= 1)

#define APM_SHUNT	(FLOAT) 1.0E-3	// Ohms
#define APM_REF_VOLTAGE	3.3			// Volt
#define APM_VOLT_BRIDGE_DIV	11	

#define LCD_RS	0x80
#define LCD_RW	0x40
#define LCD_E	0x20
#define LCD_BL	0x10
#define LCD_D7	0x08
#define LCD_D6	0x04
#define LCD_D5	0x02
#define LCD_D4	0x01


/************************ DATA TYPES *******************************/

VOID APM_hal_init(VOID);


